import request from '@/utils/request'

// 查询出勤确认列表
export function listSubmission(query) {
  return request({
    url: '/system/submission/list',
    method: 'get',
    params: query
  })
}

// 查询出勤确认详细
export function getSubmission(id) {
  return request({
    url: '/system/submission/' + id,
    method: 'get'
  })
}

// 新增出勤确认
export function addSubmission(data) {
  return request({
    url: '/system/submission',
    method: 'post',
    data: data
  })
}

// 修改出勤确认
export function updateSubmission(data) {
  return request({
    url: '/system/submission',
    method: 'put',
    data: data
  })
}

// 删除出勤确认
export function delSubmission(id) {
  return request({
    url: '/system/submission/' + id,
    method: 'delete'
  })
}

// 导出出勤确认
export function exportSubmission(query) {
  return request({
    url: '/system/submission/export',
    method: 'get',
    params: query
  })
}